<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>註冊帳號</title>
<style type="text/css">
.cs1 {
	background-color: #FDF9F9;
	font-size: large;
	font-family: "微軟正黑體", "新細明體";
}
.cs2 {
	font-family: "微軟正黑體", "新細明體";
	color: #6666FF;
	background-color: #FFFFFF;
	font-size: large;
}
</style>
</head>
<body>
<div class="cs1" id="p1" align="center">
    <input type="button" value="回首頁登入" 
			onclick="window.location.href='login.jsp'"/>
    <form action="signControl.jsp" id="form1" method="post">
      <fieldset>
        <legend>註冊新帳號</legend>
        <table>
          <tr>
            <td><label>姓名</label></td>
            <td><input type="text" name="name" id="name" value="${m3.name}"/></td>
            <td class="cs2">${m3.error[0]}</td>
          </tr>
          <tr>
            <td><label>電話</label></td>
            <td><input type="text" name="tel" id="tel" placeholder="0988-111-222"
            			value="${m3.tel}"/></td>
            <td class="cs2">${m3.error[1]}</td>
          </tr>
          <tr>	
            <td><label>暱稱</label></td>
            <td><input type="text" name="nickName" id="nickName" value="${m3.nickName}"/></td>
          	<td class="cs2">${m3.error[2]}</td>
          </tr>
          <tr>	
            <td><label>性別</label></td>
            <td>
              男<input type="radio" name="sex" id="sex" value=0/>
              女<input type="radio" name="sex" id="sex" value=1/></td>
            <td class="cs2">${m3.error[3]}</td>
          </tr>
          <tr>
            <td><label>信箱</label></td>
            <td><input type="text" name="email" id="email" value="${m3.email}"
            	placeholder="qk@yyy.ccc"/></td>
            <td class="cs2">${m3.error[4]}</td>
          </tr>
          <tr>	
            <td><label>密碼</label></td>
            <td><input type="text" name="pw" id="pw" /></td>
            <td class="cs2">${m3.error[5]}</td>
          </tr>
          <tr>	
            <td><label>密碼確認</label></td>
            <td><input type="text" name="rePw" id="rePw"/></td>
            <td class="cs2">${m3.error[6]}</td>
          </tr>	
        </table>
        <input type="submit" name="sub" value="送出">
        <input type="reset" name="re" value="重置"/>
      </fieldset>
    </form>
</div>
</body>
</html>
